import { createAPI, createFormAPI } from '@/utils/request'

export const insertPig = data => createFormAPI('/admin/pig', 'post', data)
export const deletePig= data => createAPI(`/admin/pig/${data.id}`, 'delete', data)
export const updatePig= data => createAPI('/admin/pig', 'put', data)
export const selectPig= data => createAPI('/admin/pig', 'get', data)
export const pigNum=data =>createAPI('/admin/pigNum',"get",data)
